<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>SoftClinica - SoftWay</title>
</h:head>
<h:body>
	<h:form prependId="false">
		<p:dialog header="SoftClinica - Área Restrita" modal="true"
			closable="false" position="center" widgetVar="modalLogin"
			minWidth="300" width="300" showEffect="slide" draggable="false"
			resizable="false" visible="true">
			<center>
				<p:messages id="mensagens" showDetail="true" showSummary="false" />
				<h:panelGrid columns="2">
					<h:outputLabel value="Login" />
					<h:inputText id="loginField"
						value="#{loginController.login.username}" size="15" />
					<h:outputLabel value="Senha" />
					<h:inputSecret id="passwordField"
						value="#{loginController.login.password}" size="15" />
				</h:panelGrid>
				<br />
				<h:commandButton value="Cadastrar"
					action="#{loginController.doRegister}" />
				<h:commandButton value="Entrar" action="#{loginController.doLogin}" />
			</center>
		</p:dialog>
	</h:form>
</h:body>
</html>
